package com.aeroyun.macross.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 农民
 * </p>
 *
 * @author dongjiming
 * @since 2018-08-10
 */
@TableName("cs_farmer")
public class Farmer extends Model<Farmer> {

    private static final long serialVersionUID = 1L;

    /**
     * 农民ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属农户
     */
    @TableField("peasant_household_id")
    private Integer peasantHouseholdId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private String gender;
    /**
     * 身份
     */
    private String identity;
    /**
     * 年龄
     */
    private String age;
    /**
     * 教育程度
     */
    private String education;
    /**
     * 政治面貌
     */
    @TableField("political_status")
    private String politicalStatus;
    /**
     * 农民备注
     */
    private String remarks;
    /**
     * 工作区域
     */
    @TableField("working_area")
    private String workingArea;
    /**
     * 月薪
     */
    @TableField("working_monthly_salary")
    private String workingMonthlySalary;
    /**
     * 工作类型
     */
    @TableField("working_type")
    private String workingType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPeasantHouseholdId() {
        return peasantHouseholdId;
    }

    public void setPeasantHouseholdId(Integer peasantHouseholdId) {
        this.peasantHouseholdId = peasantHouseholdId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getPoliticalStatus() {
        return politicalStatus;
    }

    public void setPoliticalStatus(String politicalStatus) {
        this.politicalStatus = politicalStatus;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getWorkingArea() {
        return workingArea;
    }

    public void setWorkingArea(String workingArea) {
        this.workingArea = workingArea;
    }

    public String getWorkingMonthlySalary() {
        return workingMonthlySalary;
    }

    public void setWorkingMonthlySalary(String workingMonthlySalary) {
        this.workingMonthlySalary = workingMonthlySalary;
    }

    public String getWorkingType() {
        return workingType;
    }

    public void setWorkingType(String workingType) {
        this.workingType = workingType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Farmer{" +
        "id=" + id +
        ", peasantHouseholdId=" + peasantHouseholdId +
        ", name=" + name +
        ", gender=" + gender +
        ", identity=" + identity +
        ", age=" + age +
        ", education=" + education +
        ", politicalStatus=" + politicalStatus +
        ", remarks=" + remarks +
        ", workingArea=" + workingArea +
        ", workingMonthlySalary=" + workingMonthlySalary +
        ", workingType=" + workingType +
        "}";
    }
}
